<%@page import="com.lzl.entity.Goods"%>
<%@page import="java.util.List"%>
<%@page import="com.lzl.dao.Goodsdaoimpl"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
if(session.getAttribute("username")==null)
	response.sendRedirect("login.jsp");
	String snack_number=request.getParameter("snack_number");
	Goodsdaoimpl gdimpl=new Goodsdaoimpl();
	gdimpl.delete(snack_number);
	response.sendRedirect("goodctrl.jsp");
%>
</body>
</html>